package com.lifa.service.impl;

import com.lifa.dao.RuKuDao;
import com.lifa.entity.RuKutable;
import com.lifa.entity.Rukumxtable;
import com.lifa.service.RuKuTongJiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RuKuTongJiServiceImpl implements RuKuTongJiService {
    @Autowired
    private RuKuDao ruKuTongJiDao;



//    public List<Kucun> getAllRuKuAll() {
//        return ruKuTongJiDao.getAllRuKu();
//    }
//
//    public List<Kucun> getAllRuKuSLAll() {
//        return ruKuTongJiDao.getAllRuKuSL();
//    }
//
//    public List<Kucun> getAllRuKuPriceAll() {
//        return ruKuTongJiDao.getAllRuKuPrice();
//    }

    @Override
    public long getTotalCount(String id) {
        return ruKuTongJiDao.getTotalCount(id);
    }

    @Override
    public List<RuKutable> query(String id, int offset, int limit) {
        return ruKuTongJiDao.query(id,limit,offset);
    }

    @Override
    public long getTotalCounts(String id) {
        return ruKuTongJiDao.getTotalCounts(id);
    }

    @Override
    public List<RuKutable> querys(String id, int offset, int limit) {
        return ruKuTongJiDao.querys(id,limit,offset);
    }

    @Override
    public List<RuKutable> listDanhao(String danhao) {
        return ruKuTongJiDao.listDanhao(danhao);
    }

    @Override
    public long getTotalCountmx(String id) {
        return ruKuTongJiDao.getTotalCountmx(id);
    }

    @Override
    public List<Rukumxtable> querymx(String id, int offset, int limit) {
        return ruKuTongJiDao.querymx(id,offset,limit);
    }

    @Override
    public List<RuKutable> listchukudanhao(String danhao) {
        return ruKuTongJiDao.listchukudanhao(danhao);
    }

//    @Override
//    public long findTotalCountRuKuMX(int id) {
//        return ruKuTongJiDao.getTotalCountRuKuMX(id);
//    }
//
//    @Override
//    public List<Kucun> findAllRuKuMX(int id, int offset, int limit) {
//        return ruKuTongJiDao.queryRuKuMX(id,offset,limit);
//    }
//
//    @Override
//    public List<Kucun> getAllRuKujmxx() {
//        return ruKuTongJiDao.getAllRuKujmx();
//    }


}
